package com.probox.common.entity.vo.statistics;

import cn.hutool.core.util.ObjectUtil;
import com.probox.common.core.annotation.Excel;
import lombok.Data;

import java.io.Serializable;

@Data
public class BuyRecordNotUsed implements Serializable {

    @Excel(name = "服务项目")
    private String name;

    @Excel(name = "销售数量")
    private Integer buyCount;

    @Excel(name = "兑换数量")
    private Integer exchangeCount;

    @Excel(name = "使用数量")
    private Integer subscribeTimes;

    @Excel(name = "未使用数量")
    private Integer waitTimes;

    public Integer getWaitTimesStr() {
        if(ObjectUtil.isEmpty(waitTimes)){
            return 0;
        }
        return waitTimes < 0 ? 0 : waitTimes;
    }

    private String type;

    private String buyType;


    private Long uid;

    //是否使用，1为使用
    private String used;

    private Long storeId;

    /**
     * 耗卡金额
     */
    @Excel(name = "耗卡金额")
    private Double haoKaMoney;
    /**
     * 实收金额
     */
    @Excel(name = "实收金额")
    private Double payMoney;
}
